import 'package:tuya_home_sdk_flutter/tuya_home_sdk_flutter.dart';

class RecipeCanUseProductListState {
  final List<ThingSmartDeviceModel> devList;
  final Map<String, String> pidMap;

  RecipeCanUseProductListState copyWith({
    List<ThingSmartDeviceModel>? devList,
    Map<String, String>? pidMap,
  }) {
    return RecipeCanUseProductListState(
      devList: devList ?? this.devList,
      pidMap: pidMap ?? this.pidMap,
    );
  }

  factory RecipeCanUseProductListState.initial() =>
      RecipeCanUseProductListState(devList: [], pidMap: {});
  RecipeCanUseProductListState({required this.devList, required this.pidMap});
}
